package com.nirvana.utils;

import javax.swing.*;

public class UIUtil {
    // 子Panel变化，父Panel需要刷新
    public static void refresh(JComponent panel) {
        if (panel == null) return;
        panel.invalidate();
        panel.validate();
        panel.updateUI();
    }
}
